<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="UTF-8" />
    <title>Range - activeBarStart</title>
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
    />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
    />
    <link href="../../../../../css/core.css" rel="stylesheet" />
    <link href="../../../../../scripts/testing/styles.css" rel="stylesheet" />
    <script src="../../../../../scripts/testing/scripts.js"></script>
    <script nomodule src="../../../../../dist/ionic/ionic.js"></script>
    <script type="module" src="../../../../../dist/ionic/ionic.esm.js"></script>

    <style>
      ion-range {
        /* End knob is being cut-off */
        width: 90%;
      }
    </style>
  </head>

  <body>
    <ion-app>
      <ion-header>
        <ion-toolbar>
          <ion-title>Range - activeBarStart</ion-title>
        </ion-toolbar>
      </ion-header>
      <ion-content class="ion-padding" id="content">
        <ion-list>
          <ion-item>
            <ion-label position="stacked">activeBarStart is 0 and value is 0.</ion-label>
            <ion-range
              class="ion-no-padding"
              min="-100"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="0"
              value="0"
            ></ion-range>
          </ion-item>
          <ion-item>
            <ion-label position="stacked"> activeBarStart is 0 and value is 70. </ion-label>
            <ion-range
              class="ion-no-padding"
              min="-100"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="0"
              value="70"
            ></ion-range>
          </ion-item>
          <ion-item>
            <ion-label position="stacked"> activeBarStart is 0 and value is -70. </ion-label>
            <ion-range
              class="ion-no-padding"
              min="-100"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="0"
              value="-70"
            ></ion-range>
          </ion-item>
          <ion-item>
            <ion-label position="stacked"> activeBarStart is -30 and value is 0. </ion-label>
            <ion-range
              class="ion-no-padding"
              min="-100"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="-30"
              value="0"
            ></ion-range>
          </ion-item>
          <ion-item>
            <ion-label position="stacked"> activeBarStart is 30 and value is 0. </ion-label>
            <ion-range
              class="ion-no-padding"
              min="-100"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="30"
              value="0"
            ></ion-range>
          </ion-item>
          <ion-item>
            <ion-label position="stacked">activeBarStart is between steps</ion-label>
            <ion-range
              class="ion-no-padding"
              min="-100"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="25"
              value="0"
            ></ion-range>
          </ion-item>
          <ion-item>
            <ion-label position="stacked">invalid activeBarStart value (less than min)</ion-label>
            <ion-range
              class="ion-no-padding"
              min="0"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="-30"
            ></ion-range>
          </ion-item>
          <ion-item>
            <ion-label position="stacked">invalid activeBarStart value (greater than max)</ion-label>
            <ion-range
              class="ion-no-padding"
              min="0"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="110"
            ></ion-range>
          </ion-item>
          <ion-item>
            <ion-label position="stacked"> activeBarStart is ignored with dual knobs enabled. </ion-label>
            <ion-range
              class="ion-no-padding"
              min="-100"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="-30"
              dual-knobs="true"
              value="30"
            ></ion-range>
          </ion-item>
        </ion-list>
      </ion-content>
    </ion-app>
  </body>
</html>
